<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>表单验证</title>
	<style>
		#box{border: 1px dashed #009900;box-shadow: 0 0 2px #079292;width:500px;margin: 100px auto;padding: 20px;}
		#authcode2{text-align: center;}
		#alert{background:#f70;color: #000000;}
		#authcode2{width: 50px;text-align: center;background: #00FF00;color: #0000FF;}
	</style>
</head>
<body>
	
	<div id="box">
		<p>注意*为必填项</p>
		<input type="text" id="alert"/>
		<p>账户详细信息</p>
		<form>
			<table>
				<tr>
					<td>用户名称:</td>
					<td>*<input type="text" id="username" /></td>
				</tr>
				<tr>
					<td>登录密码:</td>
					<td>*<input type="text" id="password1"/></td>
				</tr>
				<tr>
					<td>再次输入密码:</td>
					<td>*<input type="text" id="password2"/></td>
				</tr>
			</table>
			<p>个人信息资料:</p>
			<table>
				<tr>
					<td>电子邮件:</td>
					<td>*<input type="text" id="mail"/></td>
				</tr>
				<tr>
					<td>中奖通知手机:</td>
					<td>*<input type="text" id=" phonenum"/></td>
				</tr>
				<tr>
					<td>验证码:</td>
					<td>*<input type="text"  id="authcode1"/></td>
					<td>*<input type="text" id="authcode2"/></td>
				</tr>
			</table>
			<button id="btn">提交</button>
			<input type="checkbox" name="check" id="check" value="" />十天免登陆
		</form>
		
	</div>
</body>
</html>
<script src="cookie.js"></script>
<script src="pool.js"></script>
<script>
	var authcode2 = document.getElementById('authcode2');
	authcode2.value = addzero3(random1Num(0,999));

</script>